package io;

import java.io.FileInputStream;
import java.io.IOException;

public class FisDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("fos.txt");
        int b = fis.read();
        System.out.println(b);
        System.out.println(fis.read());
        System.out.println(fis.read());
        System.out.println(fis.read());


        System.out.println("数据读取完毕");
        fis.close();//关闭流
    }
}
